package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserDetailMapper;
import com.ruoyi.system.domain.SysUserDetail;
import com.ruoyi.system.service.ISysUserDetailService;

/**
 * 用户前台信息表Service业务层处理
 * 
 * @author hyb
 * @date 2023-02-05
 */
@Service
public class SysUserDetailServiceImpl implements ISysUserDetailService 
{
    @Autowired
    private SysUserDetailMapper sysUserDetailMapper;

    /**
     * 查询用户前台信息表
     * 
     * @param integral 用户前台信息表主键
     * @return 用户前台信息表
     */
    @Override
    public SysUserDetail selectSysUserDetailByIntegral(Long integral)
    {
        return sysUserDetailMapper.selectSysUserDetailByIntegral(integral);
    }

    /**
     * 查询用户前台信息表列表
     * 
     * @param sysUserDetail 用户前台信息表
     * @return 用户前台信息表
     */
    @Override
    public List<SysUserDetail> selectSysUserDetailList(SysUserDetail sysUserDetail)
    {
        return sysUserDetailMapper.selectSysUserDetailList(sysUserDetail);
    }

    /**
     * 新增用户前台信息表
     * 
     * @param sysUserDetail 用户前台信息表
     * @return 结果
     */
    @Override
    public int insertSysUserDetail(SysUserDetail sysUserDetail)
    {
        return sysUserDetailMapper.insertSysUserDetail(sysUserDetail);
    }

    /**
     * 修改用户前台信息表
     * 
     * @param sysUserDetail 用户前台信息表
     * @return 结果
     */
    @Override
    public int updateSysUserDetail(SysUserDetail sysUserDetail)
    {
        return sysUserDetailMapper.updateSysUserDetail(sysUserDetail);
    }

    /**
     * 批量删除用户前台信息表
     * 
     * @param integrals 需要删除的用户前台信息表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserDetailByIntegrals(Long[] integrals)
    {
        return sysUserDetailMapper.deleteSysUserDetailByIntegrals(integrals);
    }

    /**
     * 删除用户前台信息表信息
     * 
     * @param integral 用户前台信息表主键
     * @return 结果
     */
    @Override
    public int deleteSysUserDetailByIntegral(Long integral)
    {
        return sysUserDetailMapper.deleteSysUserDetailByIntegral(integral);
    }

    @Override
    public List<SysUserDetail> selectUserDetailList(String tribeNumber) {

        return sysUserDetailMapper.selectUserDetailList(tribeNumber);
    }
}
